package com.example.order_module;

import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.base.base.base1.BaseActivity;
import com.example.network_lib.module.OrderDetailBean;

import me.jessyan.retrofiturlmanager.RetrofitUrlManager;


@Route(path = "/activity/orderDetail")
public class OrderDetailActivity extends BaseActivity<OrderDetailPresenter> implements IOrderDetailContract.View {
    private TextView mTv;
    //   @BindView(R.id.tv)
//    TextView mTV;

    @Override
    public int getLayoutId() {
        return R.layout.activity_order_detail;
    }

    @Override
    public void initPresenter() {
        mPresenter.init(this);
    }

    @Override
    public void loadData() {
        mTv = (TextView) findViewById(R.id.tv);

        RetrofitUrlManager.getInstance().putDomain("api", ConstantUrl.getMxOperate);
        mPresenter.getOrderDetail("13738034183", "AC15D0");
    }

    @Override
    public void getOrderDetailSuccess(OrderDetailBean result) {
        mTv.setText(result.toString());
    }

    @Override
    public void showLoadingView(String content) {

    }

    @Override
    public void StopLoadingView() {

    }

    @Override
    public void showErrorMsg(String errMsg, String type) {

    }
}
